<%@ page language="java" contentType="text/html; utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${page.pageTotal>1}">
    <div style="text-align: center">
        <div class="laypage-main">
            <c:if test="${page.pageCurrent-3>=1}">
                <a href="${page.baseUrl}/${page.additionalUrl}/1/"
                   class="laypage-prev">首页</a>
            </c:if>
            <c:if test="${page.pageCurrent-1>1}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent-1}/"
                   class="laypage-prev">上一页</a>
            </c:if>
            <c:if test="${page.pageCurrent-2>1}">
                <a href="#" class="laypage-prev">...</a>
            </c:if>
            <c:if test="${page.pageCurrent-2>=1}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent-2}/"
                   class="laypage-prev">${page.pageCurrent-2}</a>
            </c:if>
            <c:if test="${page.pageCurrent-1>=1}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent-1}/"
                   class="laypage-prev">${page.pageCurrent-1}</a>
            </c:if>
            <span class="laypage-curr">${page.pageCurrent}</span>
            <c:if test="${page.pageCurrent+1<=page.pageTotal}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent+1}/"
                   class="laypage-prev">${page.pageCurrent+1}</a>
            </c:if>
            <c:if test="${page.pageCurrent+2<=page.pageTotal}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent+2}/"
                   class="laypage-prev">${page.pageCurrent+2}</a>
            </c:if>
            <c:if test="${page.pageCurrent+2<page.pageTotal}">
                <a href="#" class="laypage-prev">...</a>
            </c:if>
            <c:if test="${page.pageCurrent+1<=page.pageTotal}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageCurrent+1}/"
                   class="laypage-prev">下一页</a>
            </c:if>
            <c:if test="${page.pageCurrent+3<=page.pageTotal}">
                <a href="${page.baseUrl}/${page.additionalUrl}/${page.pageTotal}/"
                   class="laypage-prev">尾页</a>
            </c:if>
        </div>
    </div>
</c:if>